import request from '@/utils/request'
// 添加角色
export function addtagCategory(data) {
    return request({
      url: '/adminapi/market/v2/role/edit',
      method: 'post',
      data
    })
}
// 角色list
export function rolelist(data) {
    return request({
      url: '/adminapi/market/v2/role/index',
      method: 'post',
      data
    })
}
// 删除角色
export function roledelete(data) {
    return request({
      url: '/adminapi/market/v2/role/delete',
      method: 'post',
      data
    })
}

// 添加运营经理
export function addMansger(data) {
    return request({
      url: '/adminapi/market/v2/manager/edit',
      method: 'post',
      data
    })
}
// 运营经理列表
export function managerlist(data) {
    return request({
      url: '/adminapi/market/v2/manager/index',
      method: 'post',
      data
    })
}
// 删除运营经理
export function managerdelete(data) {
    return request({
      url: '/adminapi/market/v2/manager/delete',
      method: 'post',
      data
    })
}
// 成员列表
export function managerindex(data) {
    return request({
      url: '/adminapi/market/v2/member/index',
      method: 'post',
      data
    })
}

// 添加成员到分组
export function manageradde(data) {
    return request({
      url: '/adminapi/market/v2/member/add',
      method: 'post',
      data
    })
}

// 将成员移入其他分组
export function managermove(data) {
    return request({
      url: '/adminapi/market/v2/member/move',
      method: 'post',
      data
    })
}
// 添加/修改分组
export function eddgrounp(data) {
    return request({
      url: '/adminapi/market/v2/group/edit',
      method: 'post',
      data
    })
}
// 分组列表
export function grounplist(data) {
    return request({
      url: '/adminapi/market/v2/group/index',
      method: 'post',
      data
    })
}
// 删除分组
export function groupdelete(data) {
    return request({
      url: '/adminapi/market/v2/group/delete',
      method: 'post',
      data
    })
}
//获取考核指标
export function roleRulelist(data) {
  return request({
    url: '/adminapi/market/v2/roleRule/index',
    method: 'post',
    data
  })
}
//保存考核指标
export function roleRuleedit(data) {
  return request({
    url: '/adminapi/market/v2/roleRule/edit',
    method: 'post',
    data
  })
}
//获取奖励配置/
export function roleAwardlist(data) {
  return request({
    url: 'adminapi/market/v2/roleAward/index',
    method: 'post',
    data
  })
}
//保存奖励配置
export function roleAwardedit(data) {
  return request({
    url: '/adminapi/market/v2/roleAward/edit',
    method: 'post',
    data
  })
}
//解绑成员
export function roleDelete(data) {
  return request({
    url: '/adminapi/market/v2/member/delete',
    method: 'post',
    data
  })
}
//运营经理调级
export function setRolelove(data) {
  return request({
    url: '/adminapi/market/v2/manager/setRole',
    method: 'post',
    data
  })
}
//未加入分组的成员
export function userListNotJoin(data) {
  return request({
    url: '/adminapi/market/v2/member/userListNotJoin',
    method: 'post',
    data
  })
}

//运营经理数据统计
export function staticsByManager(data) {
  return request({
    url: '/adminapi/market/v2/manager/staticsByManager',
    method: 'post',
    data
  })
}

